import {CommonModule} from "@angular/common";
import {EmailValidator} from "./validator/email-validator";
import {PhoneNumberValidator} from "./validator/phone-validator";
import {CnIdCardValidator} from "./validator/cn-id-card-validator";
import {CnZipValidator} from "./validator/cn-zip-validator";
import {DigitsValidator} from "./validator/digits-validator";
import {TelephoneValidator} from "./validator/telephone-validator";
import {PasswordValidator} from './validator/password-validator';
import {RouterModule} from "@angular/router";
import {NgModule} from "@angular/core";

@NgModule({
    imports: [
        CommonModule,
        RouterModule,
    ],
    declarations: [
        EmailValidator,
        PhoneNumberValidator,
        CnIdCardValidator,
        CnZipValidator,
        DigitsValidator,
        TelephoneValidator,
        PasswordValidator
    ],
    exports: [
        EmailValidator,
        PhoneNumberValidator,
        CnIdCardValidator,
        CnZipValidator,
        DigitsValidator,
        TelephoneValidator,
        PasswordValidator
    ]
})
export class SharedDirectiveModule {
}
